package com.greyu.ysj.mapper;

import com.greyu.ysj.entity.CbtAsset;
import com.greyu.ysj.entity.CbtAssetExample;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CbtAssetMapper {
    long countByExample(CbtAssetExample example);

    int deleteByExample(CbtAssetExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CbtAsset record);

    int insertSelective(CbtAsset record);

    List<CbtAsset> selectByExample(CbtAssetExample example);

    CbtAsset selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CbtAsset record, @Param("example") CbtAssetExample example);

    int updateByExample(@Param("record") CbtAsset record, @Param("example") CbtAssetExample example);

    int updateByPrimaryKeySelective(CbtAsset record);

    int updateByPrimaryKey(CbtAsset record);
    
    int updateByPrimaryKeyByUserID(CbtAsset record);
    //*********************************************
    CbtAsset selectByPrimaryKeyByUserID(Integer userId);
}